<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<sj:head />
<sb:head />
<title><s:text name="userList"/></title>
</head>
<body>
	<s:a href="input.action" theme="bootstrap" cssClass="btn btn-default" ><s:text name="add"/></s:a>
	<table class="table table-striped">
		<caption><s:text name="userList"/></caption>
		<tr>
			<th><s:text name="sequence"/></th>
			<th><s:text name="user.name"/></th>
			<th><s:text name="user.age"/></th>
			<th><s:text name="user.gender"/></th>
			<th><s:text name="user.address"/></th>
			<th><s:text name="operation"/></th>
		</tr>
		<s:iterator value="#users">
			<tr>
				<td><s:property value="id" /></td>
				<td><s:property value="name" /></td>
				<td><s:property value="age" /></td>
				<td><s:if test="gender != null"><s:property value="%{getText(gender)}" /></s:if> </td>
				<td><s:property value="address" /></td>
				<td>
				 <s:a href="input.action?user.id=%{id}"  theme="bootstrap" cssClass="btn btn-default" ><s:text name="edit"/></s:a>
				 <s:a href="delete.action?user.id=%{id}"  theme="bootstrap" cssClass="btn btn-default" ><s:text name="delete"/></s:a>
				</td>
			</tr>
		</s:iterator>
	</table>
</body>
</html>